package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.PhData;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface PhDataDao extends LogicDAO<PhData, Long> {
    Page<PhData> findByDeviceId(Long deviceId, Pageable pageable);

    List<PhData> findByCreateTimeBetween(LocalDateTime start, LocalDateTime end);
}